commit 3f583ac83d813078b8b881133914db6bbd31f34b
Author: Daniel Kolesa <daniel@octaforge.org>
Date:   Sun Jan 23 21:16:25 2022 +0100

    drop some rust compiler validation

diff --git a/build/moz.configure/rust.configure b/build/moz.configure/rust.configure
index 97938d69..89c611cd 100644
--- a/build/moz.configure/rust.configure
+++ b/build/moz.configure/rust.configure
@@ -90,11 +90,6 @@ def unwrap_rustup(prog, name):
 
     return unwrap
 
-
-rustc = unwrap_rustup(rustc, "rustc")
-cargo = unwrap_rustup(cargo, "cargo")
-
-
 set_config("CARGO", cargo)
 set_config("RUSTC", rustc)
 
@@ -462,29 +457,6 @@ def rust_host_triple(
     rustc_target = detect_rustc_target(
         host, compiler_info, arm_target, rust_supported_targets
     )
-    if rustc_target != rustc_host:
-        if host.alias == rustc_target:
-            configure_host = host.alias
-        else:
-            configure_host = "{}/{}".format(host.alias, rustc_target)
-        die(
-            dedent(
-                """\
-        The rust compiler host ({rustc}) is not suitable for the configure host ({configure}).
-
-        You can solve this by:
-        * Set your configure host to match the rust compiler host by editing your
-        mozconfig and adding "ac_add_options --host={rustc}".
-        * Or, install the rust toolchain for {configure}, if supported, by running
-        "rustup default stable-{rustc_target}"
-        """.format(
-                    rustc=rustc_host,
-                    configure=configure_host,
-                    rustc_target=rustc_target,
-                )
-            )
-        )
-    assert_rust_compile(host, rustc_target, rustc)
     return rustc_target
 
 
